package com.aya.simple;

public class SimpleMain {
    public static void main(String[] args) {
        WeatherSubject weatherSubject = new WeatherSubject();
        Observable temperatureObservable = new TemperatureObservable();
        Observable humidityObservable = new HumidityObservable();

        weatherSubject.add(temperatureObservable);
        weatherSubject.add(humidityObservable);

        WeatherDto weatherDto = new WeatherDto();
        weatherDto.setHumidity("10");
        weatherDto.setTemperature("20");
        weatherSubject.setData(weatherDto);

        weatherSubject.notifyObservable();

    }
}
